<script>
import CommonPagination from '@/components/Pagination/pagination.vue';
const pg = {
    total: 0,
    page: 1,
    limit: 15,
};

export default {
    components: {
        CommonPagination
    },
    data() {
        return {
            tableHeight: '697px',
            selectedRow: [],
            pg: Object.assign({}, pg),
        }
    },
    mounted() {
        this.$nextTick(() => {
            if (this.$refs['tableView']) {
                const tableHeight = this.$refs['tableView'].$el.offsetHeight;
                this.tableHeight = tableHeight + 'px';
            }
        })
    },
    methods:{
        setPg(res) {
            this.pg  = res.data.pagination;
        },
        resetPg() {
            this.pg = Object.assign({}, pg);
        },
        handleSelectionChange(val) {
            this.selectedRow = val;
        },
        clearSelection() {
            // this.multipleSelection = [];
            this.$refs['tableView'].clearSelection()
        },
    }
}
</script>
